package cn.com.chengmandian.service.iot.constants;

public enum ChargeTypeEnum {
    GET_BATTERY(1, "扫码取新电"),
    CHANGE_BATTERY(0, "扫码换电"),
    RETURN_BATTERY(2, "扫码退电");


    private Integer code;
    private String msg;

    //为了更好的返回代号和说明，必须呀重写构造方法
    ChargeTypeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
